package com.xingmang.db.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
* <p>
    * 
    * </p>
* @author hss
* @since 2023-06-21
*/
@Data
@TableName("tb_field_setting")
@ApiModel(value = "FieldSetting对象", description = "")
public class FieldSetting implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty("常量字段设置")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("字段名称")
    @TableField("field_name")
    private String fieldName;

    @ApiModelProperty("字段值")
    @TableField("field_value")
    private String fieldValue;

    @ApiModelProperty("字段类型")
    @TableField("field_type")
    private String fieldType;

    @ApiModelProperty("等级")
    @TableField("field_level")
    private String fieldLevel;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("修改时间")
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty("是否删除")
    @TableField("is_deleted")
    @TableLogic
    private Boolean isDeleted;

}
